Skip to content

Conversation

@kschelonka
Copy link
Collaborator

@kschelonka kschelonka commented Oct 14, 2025

References:

Jira: MNTOR-5029
Jira: MNTOR-3886

Description

Remove EnableRemovealUnderMaintenanceStep flag

I chose not to make breaking changes to function apis that seemed more general, although args did become unused (e.g. removing the enabledFeatureFlags argument). I can do that if preferred.

I kept the RemovalUnderMaintenance view to avoid refactoring, but it has no logic other than to redirect to either / or /user/dashboard depending on login state. edit: deleted this

@kschelonka kschelonka requested review from Vinnl, codemist, mansaj and rhelmer and removed request for codemist October 14, 2025 19:26
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import { redirect } from "next/navigation";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this page can be removed entirely?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything in dashboard/fix/data-broker-profiles/removal-under-maintenance, including assets/styling.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do, ty!

return (
<FixView
subscriberEmails={props.subscriberEmails}
nextStep={() => moveToNextAvailableStep()}
Copy link
Collaborator

@codemist codemist Nov 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m fairly confident that the <FixView> implementation here, along with removing all tests for RemovalUnderMaintenance, is what’s triggering the <100% test coverage regression.

I opened a branch with the changes here for reference which shows 100% coverage.

Previously, we had a type guard on the nextStep prop to account for the navigation logic in RemovalUnderMaintenance, since that step wasn’t route-managed like the rest of the guided resolution flow. If you check our Storybook instances, you’ll notice the nav button is rendered using the first condition (Link) rather than Button (from TelemetryButton), which is unique to this step.

Wanted to flag in case this context helps explain the coverage drop. We definitely should've left more documentation around this type guard.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Kaitlyn, I saw the fix here is to remove this behavior then because it's no longer necessary. If that's an incorrect interpretation please let me know.

@kschelonka kschelonka merged commit 6a14ee9 into main Nov 4, 2025
19 checks passed
@kschelonka kschelonka deleted the mntor-5029 branch November 4, 2025 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants